from django.contrib import admin
from admin_manager.models import OptionModel, PageModel, FooterLinkModel, \
    PassageWayModel, AdsModel, FriendLinkModel


@admin.register(OptionModel)
class OptionAdmin(admin.ModelAdmin):
    list_display = ('name', 'code', 'value')


class LinkAdmin(admin.ModelAdmin):
    list_display = ('name', 'url', 'priority')


admin.site.register([PageModel, FooterLinkModel, PassageWayModel, AdsModel, FriendLinkModel], LinkAdmin)
